// { "framework": "Vue"} 

/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 446);
/******/ })
/************************************************************************/
/******/ ({

/***/ 341:
/***/ (function(module, exports) {

module.exports = {}

/***/ }),

/***/ 342:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


//
//
//
//
//
//
//
//

var animation = weex.requireModule('animation');
var ANIMATION_KEYFRAMES = {
  bounceIn: [[0, {
    styles: {
      transform: 'scale(.75)'
    },
    timingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)'
  }], [60, {
    styles: {
      transform: 'scale(1.1)'
    },
    timingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)'
  }], [70, {
    styles: {
      transform: 'scale(.9)'
    },
    timingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)'
  }], [80, {
    styles: {
      transform: 'scale(1.2)'
    },
    timingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)'
  }], [90, {
    styles: {
      transform: 'scale(.97)'
    },
    timingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)'
  }], [100, {
    styles: {
      transform: 'scale(1)'
    },
    timingFunction: 'cubic-bezier(0.215, 0.610, 0.355, 1.000)'
  }]],
  shakeDown: [[0, {
    styles: {
      transform: 'translateY(0px)'
    },
    timingFunction: 'ease'
  }], [25, {
    styles: {
      transform: 'translateY(20px)'
    },
    timingFunction: 'ease'
  }], [50, {
    styles: {
      transform: 'translateY(0px)'
    },
    timingFunction: 'ease'
  }], [75, {
    styles: {
      transform: 'translateY(20px)'
    },
    timingFunction: 'ease'
  }], [100, {
    styles: {
      transform: 'translateY(0px)'
    },
    timingFunction: 'ease'
  }]],
  bounceDown: [[0, {
    styles: {
      transform: 'translateY(-5px)'
    },
    timingFunction: 'ease'
  }], [60, {
    styles: {
      transform: 'translateY(40px)'
    },
    timingFunction: 'ease'
  }], [70, {
    styles: {
      transform: 'translateY(15px)'
    },
    timingFunction: 'ease'
  }], [80, {
    styles: {
      transform: 'translateY(30px)'
    },
    timingFunction: 'ease'
  }], [90, {
    styles: {
      transform: 'translateY(25px)'
    },
    timingFunction: 'ease'
  }], [100, {
    styles: {
      transform: 'translateY(30px)'
    },
    timingFunction: 'ease'
  }]]
};
module.exports = {
  props: {
    type: { default: '' },
    duration: { default: 2000 },
    delay: { default: 2000 }
  },

  data: function data() {
    return {
      idx: 0
    };
  },

  components: {},
  created: function created() {},
  mounted: function mounted() {
    if (!this.type) {
      return;
    }
    this.keyframe = ANIMATION_KEYFRAMES[this.type];
    this.doAnimation();
  },

  methods: {
    doAnimation: function doAnimation() {
      var _this = this;

      var _delay = 0;
      if (this.idx >= this.keyframe.length - 1) {
        this.idx = 0;
        _delay = this.delay;
      }
      var duration = (this.keyframe[this.idx + 1][0] - this.keyframe[this.idx][0]) * this.duration / 100;
      var params = this.keyframe[this.idx][1];
      animation.transition(this.$refs.target, {
        styles: params.styles,
        timingFunction: params.timingFunction,
        duration: duration, // ms
        delay: _delay // ms
      }, function () {
        // modal.alert({message: JSON.stringify(params)})
        _this.idx++;
        _this.doAnimation();
      });
    },
    doClick: function doClick() {
      this.$emit('click');
    }
  }
};

/***/ }),

/***/ 343:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('div', {
    ref: "target"
  }, [_vm._t("default")], 2)
},staticRenderFns: []}
module.exports.render._withStripped = true

/***/ }),

/***/ 446:
/***/ (function(module, exports, __webpack_require__) {

var __vue_exports__, __vue_options__
var __vue_styles__ = []

/* styles */
__vue_styles__.push(__webpack_require__(341)
)

/* script */
__vue_exports__ = __webpack_require__(342)

/* template */
var __vue_template__ = __webpack_require__(343)
__vue_options__ = __vue_exports__ = __vue_exports__ || {}
if (
  typeof __vue_exports__.default === "object" ||
  typeof __vue_exports__.default === "function"
) {
if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")}
__vue_options__ = __vue_exports__ = __vue_exports__.default
}
if (typeof __vue_options__ === "function") {
  __vue_options__ = __vue_options__.options
}
__vue_options__.__file = "/Users/lvling/workspace/米乐购/laxiaoke-app-mz/src/components/animation.vue"
__vue_options__.render = __vue_template__.render
__vue_options__.staticRenderFns = __vue_template__.staticRenderFns
__vue_options__._scopeId = "data-v-b8d63666"
__vue_options__.style = __vue_options__.style || {}
__vue_styles__.forEach(function (module) {
  for (var name in module) {
    __vue_options__.style[name] = module[name]
  }
})
if (typeof __register_static_styles__ === "function") {
  __register_static_styles__(__vue_options__._scopeId, __vue_styles__)
}

module.exports = __vue_exports__
module.exports.el = 'true'
new Vue(module.exports)


/***/ })

/******/ });